﻿$(function () {
    $(".ld-tabs").kendoTabStrip({});

    kendo.culture("zh-CHS");
});

function GetOrderStatusString(status, method) {
    if (method == 1 || method==4) {
        switch (status) {
            case 1:
                return "未入库";
            case 3:
                return "部分入库";
            case 5:
                return "入库完成";
            default:
                return "";
        }
    } else {
        switch (status) {
            case 1:
                return "未出库";
            case 3:
                return "部分出库";
            case 5:
                return "出库完成";
            default:
                return "";
        }
    }
}

function GetOrderName(orderMethod) {
    switch (orderMethod) {
        case 1:
            return "采购单";
        case 2:
            return "销售单";
        case 3:
            return "采购退货单";
        case 4:
            return "销售退货单";
        case 11:
            return "入库单";
        case 12:
            return "出库单";
        case 13:
            return "盘存单";
        case 14:
            return "调拨单";
        case 21:
            return "付款单";
        case 22:
            return "收款单";
    }
}


